package com.yt.ootest.StratePattern;

import com.yt.ootest.StratePattern.Behavior.Fly.BadFlyBehavior;
import com.yt.ootest.StratePattern.Behavior.Quack.HahaQuackHehavior;

/**
 * Created by Administrator on 2019/1/27 20:18
 */
public class RedHeadDuck extends Duck {
    public RedHeadDuck() {
        mFlyBehavior = new BadFlyBehavior();
        mQuackBehavior = new HahaQuackHehavior();
    }

    @Override
    public void display() {
        System.out.println("Red head Duck!");
    }
}
